package com.ruoyi.party.system.domain;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 党组织机构对象 p_org
 * 
 * @author 黄宝康
 * @date 2021-04-16
 */
public class Org extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 机构编号 */
    @Excel(name = "机构编号")
   // @NotBlank(message = "机构编号不能为空")
    @Size(min = 0, max = 10, message = "机构编号长度不能超过10个字符")
    private String orgId;

    /** 机构名称 */
    @Excel(name = "机构名称")
    @NotBlank(message = "机构名称不能为空")
    @Size(min = 0, max = 20, message = "机构名称长度不能超过20个字符")
    private String orgName;

    /** 机构类型 */
    @Excel(name = "机构类型")
    @NotBlank(message = "机构类型不能为空")
    @Size(min = 0, max = 2, message = "机构类型长度不能超过2个字符")
    private String orgType;

    public void setOrgId(String orgId) 
    {
        this.orgId = orgId;
    }

    public String getOrgId() 
    {
        return orgId;
    }
    public void setOrgName(String orgName) 
    {
        this.orgName = orgName;
    }

    public String getOrgName() 
    {
        return orgName;
    }
    public void setOrgType(String orgType) 
    {
        this.orgType = orgType;
    }

    public String getOrgType() 
    {
        return orgType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orgId", getOrgId())
            .append("orgName", getOrgName())
            .append("orgType", getOrgType())
            .toString();
    }
}
